package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

//桃花传音，语音的数据库实体类
/*选择mongo来作为数据库，应对频繁的语音保存和查询，且支持海量数据
* */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "userreport")
public class UserReport implements Serializable {
    //序列化id
    private static final long serialVersionUID = -3136732836995933872L;
    private ObjectId id;        //报告id
    private Long soulPaperId ;  //试卷id
    private Long userId;        //用户id
    private String scope;       //测试结果所在范围
    private String cover;       //封面
    private String conclusion;  //描述
    private String genre;       //类型，比如猫头鹰，狗

    private Long created;       //创建时间
    private Long updated;       //修改时间


}
